package com.lagou.service;


import com.lagou.pojo.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from user where 1")
    List<User> findAll();

    @Insert({"insert into user (name) values (#{name})"})
    int insertUser(User user);

    @Select("select * from user where name = #{name}")
    User getUser(User user);

}
